package cn.xiaohui;

public class SendTask {
	  private String number;
	    private double goodsWeigh;
	    public SendTask(){
	    	super();
	        
	    }
	public SendTask(String number,double goodsWeight){
	        this.number=number;
	        this.goodsWeigh=goodsWeight;
	        
	    }
	//送前准备
	    public void sendBefore(){
	        System.out.println("订单开始处理，仓库验货中。。。");
	        System.out.println("货物重量"+goodsWeigh+"kg");
	        System.out.println("货物检验完毕！");
	        System.out.println("货物装填完毕！");
	        System.out.println("运货人已通知！");
	        System.out.println("快递单号"+number);
	}
	    //发送货物
	    public  void send(Ztransportation t,GPS tool){
	        System.out.println("运货人"+t.getAdmin()+"正在驾驶编号为"+t.getNumber()
	                +"的"+t.getModel()+"发送货物!");
	        t.transport();
	        String showCoordinate = tool.shuwCoordinate();
	        System.out.println("货物当前坐标为"+showCoordinate);
	    }
	    //送后操作
	    public void sendAfter(Transportation t){
	        System.out.println("货物运输任务已将完成");
	        System.out.println("运货人"+t.getAdmin()+
	                "所驾驶的标号为"+t.getNumber()+
	                "的"+t.getModel()+"已经归还");
	    }
	    public String getNumber() {
	        return number;
	    }
	    public void setNumber(String number) {
	        this.number = number;
	    }
	    public double getGoodsWeigh() {
	        return goodsWeigh;
	    }
	    public void setGoodsWeigh(double goodsWeigh) {
	        this.goodsWeigh = goodsWeigh;
	    }

	}
